#include "logic/Quad.h"

namespace logic
{

   Quad::~Quad()
   {
      if (vb) delete vb;
   }


   void Quad::draw() const
   { 
      texture.bind();
      glPushMatrix();
      glTranslatef(position.x, position.y, 0);
      vb->bind();
      vb->draw(GL_QUADS);
      vb->unbind();
      glPopMatrix();
   }

   
   AnimQuad::~AnimQuad()
   {
   }

   void AnimQuad::draw() const
   { }

   void AnimQuad::update()
   { }


}
